package br.net.woodstock.tickettoride.vaadin.web;

import java.io.Serializable;
import java.util.ResourceBundle;

class Messages implements Serializable {

	private static final long	serialVersionUID	= 2584494522726495792L;

	private static final String	RESOURCE_NAME		= "messages";

	private static Messages		instance			= new Messages();

	private ResourceBundle		resource;

	public Messages() {
		super();
		this.resource = ResourceBundle.getBundle(Messages.RESOURCE_NAME);
	}

	public String getMessage(final String key) {
		return this.resource.getString(key);
	}

	public static Messages getInstance() {
		return Messages.instance;
	}

}
